function [T] = multlr(y, x)
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here

%checks dimensions of matrices

[rowsx, colsx] = size(x);
[rowsy, colsy] = size(y);


if rowsx ~= rowsy
    error('x and y must have same number of rows')
end

T = (x'*x)\x'*y;



end
